<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	    		xmlns:ui="http://java.sun.com/jsf/facelets"
	  			xmlns:h="http://java.sun.com/jsf/html"
	  			xmlns:f="http://java.sun.com/jsf/core"
	  			xmlns:t="http://myfaces.apache.org/tomahawk"
	  			xmlns:sf="http://www.springframework.org/tags/faces"
				template="/WEB-INF/layouts/tableLayout.xhtml">

<ui:define name="content">
	<h:form id="tablesForm">
	    <span class="errors">
	       <h:messages globalOnly="true" />
	    </span>

		<div class="buttonGroup">
			<sf:commandButton id="cbBackTop" value="#{msg.general_backButton}" processIds="tablesForm" action="back" />
			<sf:commandButton id="cbExportImportTop" value="#{msg.connection_importButton}" processIds="mainForm" action="importexport" />
			<sf:commandButton id="cbSaveDown" value="#{msg.general_saveButton}" processIds="tablesForm" action="save" />
		</div>
	    
		<h:dataTable id="dtTables" styleClass="commentsTable" value="#{flowScope.schemaTables}" var="table">
			<h:column>
				<f:facet name="header">#{msg.general_table}</f:facet>
				<h:outputText value="#{table.name}"/>						
			</h:column>
			<h:column>
				<f:facet name="header">#{msg.general_comment}</f:facet>
				<h:inputTextarea value="#{table.comment}" styleClass="commentTextArea" rows="1"/>						
			</h:column>
			<h:column>
				<t:commandLink id="editColumnComments" value="#{msg.tables_editButton}" action="columns" />
			</h:column>
		</h:dataTable>
		
		<div class="buttonGroup">
			<sf:commandButton id="cbBackDown" value="#{msg.general_backButton}" processIds="tablesForm" action="back" />
			<sf:commandButton id="cbExportImportDown" value="#{msg.connection_importButton}" processIds="mainForm" action="importexport" />
			<sf:commandButton id="cbSaveDown" value="#{msg.general_saveButton}" processIds="tablesForm" action="save" />
		</div>
				
	</h:form>
</ui:define>
</ui:composition>